package cn.cdeden.knowledge.domain.dto;

import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
//import io.swagger.annotations.ApiModelProperty;
import cn.cdeden.knowledge.domain.FilesDistributeTree;
import cn.cdeden.knowledge.domain.vo.FilesTreeRecycleVo;
import cn.cdeden.resource.api.domain.RemoteFilesDownload;
import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
* @author Chen
* @date 2022-09-16
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@AutoMappers({@AutoMapper(target = FilesTree.class),@AutoMapper(target = RemoteFilesDownload.class),@AutoMapper(target = FilesDistributeTree.class),@AutoMapper(target = FilesTreeRecycleVo.class)})
public class TeamFilesTreeDto implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "编号")
    private Long id;

//    @ApiModelProperty(value = "父亲编号")
    private String parentId;

//    @ApiModelProperty(value = "团队编号")
    private String teamId;

//    @ApiModelProperty(value = "后缀名")
    private String suffix;

//    @ApiModelProperty(value = "名称")
    private String realName;

//    @ApiModelProperty(value = "标记tms资源")
    private String toTms;

//    @ApiModelProperty(value = "上级路径")
    private String superiorsPath;

//    @ApiModelProperty(value = "路径")
    private String path;

//    @ApiModelProperty(value = "类型")
    private String type;

//    @ApiModelProperty(value = "储存表id")
    private String storageId;

//    @ApiModelProperty(value = "储存服务器类型")
    private String storageType;

//    @ApiModelProperty(value = "文件大小")
    private Long size;

//    @ApiModelProperty(value = "关连状态")
    private String linkingState;

//    @ApiModelProperty(value = "收藏")
    private String collection;

//    @ApiModelProperty(value = "关注")
    private String attention;

//    @ApiModelProperty(value = "锁定")
    private String isLock;

//    @ApiModelProperty(value = "版本号")
    private String editionName;

//    @ApiModelProperty(value = "版本编码")
    private String edition;

//    @ApiModelProperty(value = "备注")
    private String remarks;

    private String esId;

//    @ApiModelProperty(value = "创建编号")
    private String createId;

//    @ApiModelProperty(value = "创建者")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME)
    private String createBy;

//    @ApiModelProperty(value = "创建日期")
    private Date createTime;

//    @ApiModelProperty(value = "更新编号")
    private String updateId;

//    @ApiModelProperty(value = "更新者")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME)
    private String updateBy;

//    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

//    @ApiModelProperty(value = "删除编号")
    private String deleteId;

//    @ApiModelProperty(value = "删除者")
    private String deleteBy;

//    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;

//    @ApiModelProperty(value = "生效日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date effectiveDate;

//    @ApiModelProperty(value = "过期日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date expirationDate;

//    @ApiModelProperty(value = "项目模板")
    private String templateName;

//    @ApiModelProperty(value = "儿子数据")
    private List<TeamFilesTreeDto> children = new ArrayList<>();

//    @ApiModelProperty(value = "库的类型")
    private String libraryType = "team";

//    @ApiModelProperty(value = "置顶")
    private Integer sort;

//    @ApiModelProperty(value = "判断是否重名")
    private Boolean duplicate = false;

}
